#ifndef _STLinkV2_H_
#define _STLinkV2_H_

#include "mcuhead.h"

typedef u32 (*readData)(u8* data,u32 len);
typedef u32 (*writeData)(u8* data,u32 len);

typedef struct {
	void(*Init)(u8* pbuff);
	void(*CMD)(readData rd, writeData wd);
}STLinkV2Base;


extern const STLinkV2Base STLinkV2;

#endif
